package com.cldz.dao;

import com.cldz.common.dto.req.DevAlarmDto;
import com.cldz.entity.DeviceAlarm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 13:16 2018/12/15
 * @ Description：
 * @ Modified By：
 */
@Mapper
public interface DevAlarmMapper {


    List<DeviceAlarm> getRunAlarmData(DevAlarmDto devAlarmDto);

    Integer getRunAlarmDataAmount(DevAlarmDto devAlarmDto);

    List<DeviceAlarm> getRunDeviceAlarmData(DevAlarmDto devAlarmDto);

    Integer getRunDeviceAlarmDataAmount(DevAlarmDto devAlarmDto);

    List<DeviceAlarm> getHisAlarmData(DevAlarmDto devAlarmDto);

    Integer getHisAlarmDataAmount(DevAlarmDto devAlarmDto);

    List<DeviceAlarm> getHisDeviceAlarmData(DevAlarmDto devAlarmDto);

    Integer getHisDeviceAlarmDataAmount(DevAlarmDto devAlarmDto);

    Integer getDevsRunAlarmCount(String dev);

    List<DeviceAlarm> getAlarmMsgs(DevAlarmDto devAlarmDto);

    Integer getAlarmMsgsAmount(DevAlarmDto devAlarmDto);
}
